<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>控制台 - 大淘客总库</title>
	<meta name="keywords" content="<{$title}>" />
	<meta name="description" content="<{$title}>" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<include file="Common/headerStyle" />
	<script language="javascript" src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
	<script src="__PUBLIC__/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/uploadify/uploadify.css">
	
	<script src="__PUBLIC__/js/comm.js" type="text/javascript"></script>
	<style type="text/css">
	body {
		font: 13px Arial, Helvetica, Sans-serif;
	}
	
	</style>
	
	
</head>
<body>
	<div class="main-container" id="main-container">
		<div class="main-container-inner">
			<div class="page-content">
				<div class="page-header">
					<h1>
						<{$title}>
						<small>
							<i class="icon-double-angle-right"></i>
							 查看
						</small>
						<div class="alert alert-info">
							<button type="button" class="close" data-dismiss="alert">
								<i class="icon-remove"></i>
							</button>
							<p>上传数据报表</p>
						</div>
					</h1>
					</div><!-- /.page-header -->
		
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->

						<div class="row">

							<!--p>
								<button class="btn btn-app btn-purple btn-sm" onClick="javascript:$('#file_upload').click(); ">
									<i class="icon-cloud-upload bigger-200"></i>
									批量上传
								</button>
							</p-->

	<form name="fileFrom" enctype="multipart/form-data">
		<div id="queue"></div>
		<input id="file_upload" name="file_upload" type="file" multiple="true">
	</form>


						</div><!-- /row -->

						<div class="hr hr32 hr-dotted"></div>



<div class="col-sm-6" style="display:none;">
	<h3 class="header blue lighter smaller">
		<i class="icon-list-alt smaller-90"></i>
		对话框示例
	</h3>
	<a href="#" id="id-btn-dialog2" class="btn btn-info btn-sm">确认对话框</a>
	<a href="#" id="id-btn-dialog-report" class="btn btn-purple btn-sm">模态框</a>

	<div id="dialog-message" class="hide">
		<p>
			文件上传结果：
		</p>

		<div class="hr hr-12 hr-double"></div>

		<p id="dialogRes">
			
			默认文字,需经过jquery重处理.
		</p>
	</div><!-- #dialog-message -->

	<div id="dialog-confirm" class="hide">
		<div class="alert alert-info bigger-110">
			These items will be permanently deleted and cannot be recovered.
		</div>

		<div class="space-6"></div>

		<p class="bigger-110 bolder center grey">
			<i class="icon-hand-right blue bigger-120"></i>
			Are you sure?
		</p>
	</div><!-- #dialog-confirm -->
</div>






						<!-- PAGE CONTENT ENDS -->
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div>
			

		</div><!-- /.main-container-inner -->
	</div><!-- /.main-container -->



	<script type="text/javascript">
		<?php $timestamp = time();?>
		$(function() {
			$('#file_upload').uploadify({
				'formData'     : {
					'timestamp' : '<?php echo $timestamp;?>',
					'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
				},
				'swf'      : '__PUBLIC__/uploadify/uploadify.swf',
				'uploader' : '/index.php/Admins/Upload/uploadReport/',
				'checkScript'  : '/index.php/Admins/Upload/checkExists/',
				'buttonText':'选择文件',
				'fileSizeLimit':1024,
				'fileTypeDesc' : 'Image Files',
				'fileTypeExts' : '*.gif; *.jpg; *.png; *.xls',
				'onQueueComplete':function (queueData){
						//alert("列队成功:" + queueData.uploadsSuccessful  + "个");
						//alert("列队失败:" + queueData.uploadsErrored  + "个");
						resture = "列队成功:" + queueData.uploadsSuccessful  + "个"+"<br/>"+"列队失败:" + queueData.uploadsErrored  + "个";
						$("#dialogRes").html(resture);
						$("#id-btn-dialog-report").click();
				
				},
				'onUploadSuccess': function ( fileObj, response, data) { 
						$('#' + fileObj.id).find('.data').html(' 上传完毕'); 
					　		//alert("文件:" + fileObj.name + "上传成功");
					　},  
					　'onUploadError': function(event, queueID, fileObj) { 
							$('#' + fileObj.id).find('.data').html('<b>上传失败</b>'); 
					　		//alert("文件:" + fileObj.name + "上传失败");  
					　},  
					　'onCancel': function(event, queueID, fileObj){  
					　		//alert("取消了" + fileObj.name);  
					　　　} 
				
				
			});
		});
	</script>




		<!-- basic scripts -->


		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='__PUBLIC__/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='__PUBLIC__/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='__PUBLIC__/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="__PUBLIC__/assets/js/bootstrap.min.js"></script>
		<script src="__PUBLIC__/assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<script src="__PUBLIC__/assets/js/jquery-ui-1.10.3.full.min.js"></script>
		<script src="__PUBLIC__/assets/js/jquery.ui.touch-punch.min.js"></script>

		<!-- ace scripts -->

		<script src="__PUBLIC__/assets/js/ace-elements.min.js"></script>
		<script src="__PUBLIC__/assets/js/ace.min.js"></script>



<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
	
	<include file = "Common/footerStyle" />
</body>
</html>


